<?php 
require_once '../../../include.php';
checkLogin();
$dsql="select id,departmentName from department order by id";
$drow=fetchAll($dsql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
	<title>后台账号管理</title>
	<link rel="stylesheet" href="../../vender/sui/sui.min.css">
	<link rel="stylesheet" href="../../css/style.css">
	<link rel="stylesheet" href="../../css/admin.css">
	<link rel="stylesheet" href="../../vender/bsgrid/merged/bsgrid.all.min.css"/>
</head>
<body>
	<div class="content-title">
		<h4>后台账号管理</h4>
	</div>
	<div class="content-wrapper">
        <div class="btn-box">
            <a href="managerAdd.php" class="sui-btn btn-primary btn-large"><i class="sui-icon icon-tb-roundadd"></i>添加</a>
            <a href="javascript:;" onclick="manager.delCheck()" class="sui-btn btn-danger btn-large"><i class="sui-icon icon-tb-delete"></i>批量删除</a>
        </div>
        <div class="search-box">
            <form id="seach" class="sui-form form-inline">
                部门：
                <select name="departmentId" class="input-fat">
                	<option value="">全部</option>
					<?php 
						foreach ($drow as $key => $value){
							echo "<option value='".$value['id']."'>{$value["departmentName"]}</option>";
						}
					?>
                </select>
                账号：
                <input type="text" name="username" placeholder="账号" class="input-fat"> 
                <button type="button" class="sui-btn btn-primary" onclick="manager.search()">提交</button>
                <button type="reset" class="sui-btn">重置</button>
            </form>
        </div>
		<table id="managerList">
		    <tr>
		        <th w_index="id" w_check="true" width="3%;"></th>
		        <th w_index="id" width="5%;">ID</th>
		        <th w_index="username" w_align="left" width="13%;">账号</th>
		        <th w_index="realname" width="13%">姓名</th>
		        <th w_index="departmentName" width="10%;">所属部门</th>
		        <th w_index="illustrate" w_align="left" width="25%;">描述</th>
		        <th w_render="manager.state" width="7%;">状态</th>		        	        
		        <th w_render="manager.operate" width="">操作</th>
		    </tr>
		</table>
	</div>
</body>
</html>
<script src="../../vender/jquery/jquery-1.11.1.js"></script>
<script src="../../vender/jquery/jquery.alerts.js"></script>
<script src="../../vender/sui/sui.js"></script>
<script src="../../vender/bsgrid/js/lang/grid.zh-CN.min.js"></script>
<script src="../../vender/bsgrid/merged/bsgrid.all.min.js"></script>
<script src="../../scripts/admin.js"></script>
<script src="../../scripts/manager/manager.js"></script>